/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: Curtains
 * @author: xiayuanxing
 * @description: TODO
 * @date: 2022/1/10 16:48
 * @version: 1.0
 */
public class Curtains extends Colleague{

    public Curtains(Mediator mediator, String name) {
        super(mediator, name);
        mediator.Register(name,this);
    }

    @Override
    public void SendMessage(int stateChange) {
        this.getMediator().GetMessage(stateChange,this.name);
    }

    public void UpCurtains(){
        System.out.println("I am holding Up Curtains!");
    }
}
